package com.xxx.sr;

import java.io.*;

import static java.lang.System.*;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/22  16:01
 * @Copyright
 */
public class systemDome {
    public static void main(String[] args)throws IOException {
       //m1();

        try(
                //写入
                BufferedReader reader = new BufferedReader(new InputStreamReader( System.in));
                BufferedWriter bufferedWriter = new BufferedWriter( new OutputStreamWriter(System.out))
                ) {
            String s = null;
            while ((s = reader.readLine()) != null){
                //System.out.println(s);
                bufferedWriter.write(s);
                bufferedWriter.newLine();
                bufferedWriter.flush();
            }


        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private static void m1() throws IOException {
        // 标准输入流
        InputStream in = System.in;
        // 标准输出流
        PrintStream out = System.out;

        //桥梁
        InputStreamReader streamReader = new InputStreamReader(in);//输入桥梁
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(out);//输出桥梁

        //转字符流
        BufferedReader reader = new BufferedReader(streamReader);
        //
        BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);
        String s = null;
        while ((s = reader.readLine()) != null){
            //System.out.println(s);
            bufferedWriter.write(reader.toString());
            bufferedWriter.newLine();
            bufferedWriter.flush();
        }
    }
}
